package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zhangyufu
 * @description 区域信息类，继承于BaseEntity类
 * 用于存储区域信息
 * @date 2019/7/9
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_district")
public class District extends BaseEntity {

    /**
     * 省份名称
     */
    @Column(name = "province", length = 20)
    private String province;

    /**
     * 市名称
     */
    @Column(name = "city", length = 20)
    private String city;

    /**
     * 区名称
     */
    @Column(name = "district", length = 20)
    private String district;

}
